//
// Created by rengen.gong on 2021/12/2.
//

#ifndef LEARN1_CLOCKFRIEND_H
#define LEARN1_CLOCKFRIEND_H

#include "Clock.h"

class ClockFriend {

private:
    Clock *clock;

public:
    ClockFriend(Clock &c) {
        clock = &c;
    }


    void resetClock() {
        clock->hour = 0;
        clock->minute = 0;
        clock->second = 0;
    }

};

#endif //LEARN1_CLOCKFRIEND_H
